home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 May / macformat-024.iso / Shareware City / Developers / nshellmegasource1.50 / mega src / commands / man.π.rsrc < prev    next >
MacBinary  |  1994-11-27  |  10.9 KB  |  [rsrc/RSED]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: man.π.rsrc

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert MacOS Resource Fork (archive/rsrc) magic Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert BeOS Resource Data (archive/beOSResourceData) ext Unsupported
100% file MacBinary II, Mon Oct 25 14:34:06 1993, modified Sun Nov 27 02:15:29 1994, creator Resource Editor, type resource "man.�.rsrc", at 0x80 10957 bytes resource Apple HFS/HFS+ resource fork, map offset 0x2842, map length 0x28b, data length 0x2742, at 16 0x00000001, nextResourceMap 0x5aca84, fileRef 0xaa8, list offset 0x1c, name offset 0x136, 2 types, 0x54455854 'TEXT' * 20 resource offset 0x12 default (weak)
99% file Adobe Photoshop Color swatch, version 0, 256 colors; 1st RGB space (0), w 0x2842, x 0, y 0x2742, z 0 ; 2nd space (651), w 0, x 0x1, y 0xe42, z 0x6f6f default (weak)
98% file data default
74% TrID Mac resource data (MacBinary) default
25% TrID MacBinary 2 default (weak)
50% lsar MacBinary default


id metadata
keyvalue
macFileType[rsrc]
macFileCreator[RSED]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 6d 61 6e 2e b9 2e | 72 73 72 63 00 00 00 00 |..man...|rsrc....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 72 73 72 63 52 53 45 | 44 00 00 00 00 00 00 00 |.rsrcRSE|D.......|
|00000050| 00 00 00 00 00 00 00 00 | 00 2a cd a8 f1 cc 9e aa |........|.*......|
|00000060| fd e2 91 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 36 26 00 00 |........|....6&..|
|00000080| 00 00 01 00 00 00 28 42 | 00 00 27 42 00 00 02 8b |......(B|..'B....|
|00000090| 00 00 00 01 0e 42 6f 6f | 6b 6d 61 72 6b 20 43 44 |.....Boo|kmark CD|
|000000a0| 20 31 35 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | 15.....|........|
|000000b0| 0a 6d 61 6e 2e b9 2e 72 | 73 72 63 00 02 00 00 00 |.man...r|src.....|
|000000c0| 72 73 72 63 52 53 45 44 | 00 00 00 00 00 00 00 00 |rsrcRSED|........|
|000000d0| 00 00 72 73 72 63 52 53 | 45 44 00 00 00 00 00 00 |..rsrcRS|ED......|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 ab 83 77 0e 00 00 | 00 00 00 00 2a cd 69 6e |....w...|....*.in|
|00000100| 67 20 33 32 2d 42 69 74 | 00 00 08 f0 25 00 00 00 |g 32-Bit|....%...|
|00000110| 19 9b 13 55 49 6e 66 6f | 72 6d 61 74 69 6f 6e 56 |...UInfo|rmationV|
|00000120| 69 65 77 2e 63 70 00 00 | 00 00 00 00 00 00 00 00 |iew.cp..|........|
|00000130| 00 00 00 00 0d fe 25 00 | 00 00 22 0d 00 00 00 00 |......%.|..".....|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 75 |........|.......u|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 01 1c 0d 4d 41 4e | 20 52 45 53 4f 55 52 43 |.....MAN| RESOURC|
|00000190| 45 53 0d 0d 54 6f 20 63 | 72 65 61 74 65 20 6d 61 |ES..To c|reate ma|
|000001a0| 6e 20 70 61 67 65 73 20 | 66 6f 72 20 79 6f 75 72 |n pages |for your|
|000001b0| 20 6f 77 6e 20 63 6f 6d | 6d 61 6e 64 73 2c 20 63 | own com|mands, c|
|000001c0| 72 65 61 74 65 20 54 45 | 58 54 20 72 65 73 6f 75 |reate TE|XT resou|
|000001d0| 72 63 65 73 20 77 69 74 | 68 3a 0d 0d 31 2e 20 20 |rces wit|h:..1. |
|000001e0| 20 20 20 52 65 73 6f 75 | 72 63 65 20 49 44 73 20 | Resou|rce IDs |
|000001f0| 61 62 6f 76 65 20 73 69 | 78 74 65 65 6e 20 74 68 |above si|xteen th|
|00000200| 6f 75 73 61 6e 64 2e 0d | 32 2e 20 20 20 20 20 52 |ousand..|2. R|
|00000210| 65 73 6f 75 72 63 65 20 | 6e 61 6d 65 73 20 6f 66 |esource |names of|
|00000220| 20 74 68 65 20 66 6f 72 | 6d 61 74 20 22 6d 61 6e | the for|mat "man|
|00000230| 20 73 75 62 6a 65 63 74 | 22 0d 0d 4e 6f 74 65 20 | subject|"..Note |
|00000240| 74 68 61 74 20 74 68 65 | 20 72 65 73 6f 75 72 63 |that the| resourc|
|00000250| 65 20 77 69 74 68 20 74 | 68 65 20 6e 61 6d 65 20 |e with t|he name |
|00000260| 22 6d 61 6e 20 67 65 6e | 65 72 61 6c 22 20 69 73 |"man gen|eral" is|
|00000270| 20 75 73 65 64 20 77 68 | 65 6e 20 74 68 65 20 75 | used wh|en the u|
|00000280| 73 65 72 20 64 6f 65 73 | 20 6e 6f 74 20 73 70 65 |ser does| not spe|
|00000290| 63 69 66 79 20 61 20 73 | 75 62 6a 65 63 74 2e 0d |cify a s|ubject..|
|000002a0| 00 00 00 37 01 50 80 00 | 00 00 05 31 2e 35 2e 30 |...7.P..|...1.5.0|
|000002b0| 2a 31 2e 35 2e 30 2c 20 | a9 20 4e 65 77 70 6f 72 |*1.5.0, |. Newpor|
|000002c0| 74 20 53 6f 66 74 77 61 | 72 65 20 44 65 76 65 6c |t Softwa|re Devel|
|000002d0| 6f 70 6d 65 6e 74 20 31 | 39 39 34 00 00 00 27 01 |opment 1|994...'.|
|000002e0| 50 80 00 00 00 05 31 2e | 35 2e 30 1a 31 2e 35 2e |P.....1.|5.0.1.5.|
|000002f0| 30 20 28 41 6e 20 6e 53 | 68 65 6c 6c aa 20 43 6f |0 (An nS|hell. Co|
|00000300| 6d 6d 61 6e 64 29 00 00 | 02 03 0d 4e 41 4d 45 0d |mmand)..|...NAME.|
|00000310| 0d 6d 61 6e 20 2d 20 63 | 6f 6d 6d 61 6e 64 20 6c |.man - c|ommand l|
|00000320| 69 6e 65 20 6d 61 6e 75 | 61 6c 0d 0d 53 59 4e 4f |ine manu|al..SYNO|
|00000330| 50 53 49 53 0d 0d 6d 61 | 6e 20 63 6f 6d 6d 61 6e |PSIS..ma|n comman|
|00000340| 64 20 5b 73 65 63 74 69 | 6f 6e 5d 0d 0d 44 45 53 |d [secti|on]..DES|
|00000350| 43 52 49 50 54 49 4f 4e | 0d 0d 54 68 65 20 22 6d |CRIPTION|..The "m|
|00000360| 61 6e 22 20 70 72 6f 67 | 72 61 6d 20 72 65 61 64 |an" prog|ram read|
|00000370| 73 20 61 20 64 65 73 63 | 72 69 70 74 69 76 65 20 |s a desc|riptive |
|00000380| 74 65 78 74 20 72 65 73 | 6f 75 72 63 65 20 66 72 |text res|ource fr|
|00000390| 6f 6d 20 77 69 74 68 69 | 6e 20 61 20 73 65 6c 65 |om withi|n a sele|
|000003a0| 63 74 65 64 20 63 6f 6d | 6d 61 6e 64 20 61 6e 64 |cted com|mand and|
|000003b0| 20 77 72 69 74 65 73 20 | 74 68 61 74 20 74 65 78 | writes |that tex|
|000003c0| 74 20 74 6f 20 73 74 61 | 6e 64 61 72 64 20 6f 75 |t to sta|ndard ou|
|000003d0| 74 70 75 74 2e 0d 0d 4e | 6f 74 65 3a 20 4d 61 6e |tput...N|ote: Man|
|000003e0| 20 70 61 67 65 73 20 61 | 72 65 20 61 76 61 69 6c | pages a|re avail|
|000003f0| 61 62 6c 65 20 66 6f 72 | 20 66 6c 6f 77 2d 6f 66 |able for| flow-of|
|00000400| 2d 63 6f 6e 74 72 6f 6c | 20 73 74 61 74 65 6d 65 |-control| stateme|
|00000410| 6e 74 73 2c 20 62 75 74 | 20 74 68 65 79 20 6d 75 |nts, but| they mu|
|00000420| 73 74 20 62 65 20 71 75 | 6f 74 65 64 20 73 6f 20 |st be qu|oted so |
|00000430| 74 68 61 74 20 74 68 65 | 20 73 68 65 6c 6c 20 6b |that the| shell k|
|00000440| 6e 6f 77 73 20 68 6f 77 | 20 74 6f 20 65 78 65 63 |nows how| to exec|
|00000450| 75 74 65 20 74 68 65 6d | 3a 0d 0d 6d 61 6e 20 22 |ute them|:..man "|
|00000460| 69 66 22 0d 6d 61 6e 20 | 22 77 68 69 6c 65 22 0d |if".man |"while".|
|00000470| 0d 52 45 54 55 52 4e 20 | 43 4f 44 45 53 0d 0d 3c |.RETURN |CODES..<|
|00000480| 30 09 45 72 72 6f 72 0d | 30 09 53 75 63 63 65 73 |0.Error.|0.Succes|
|00000490| 73 0d 0d 53 45 45 20 41 | 4c 53 4f 0d 0d 74 72 79 |s..SEE A|LSO..try|
|000004a0| 20 22 6d 61 6e 20 6d 61 | 6e 20 72 65 73 6f 75 72 | "man ma|n resour|
|000004b0| 63 65 73 22 0d 0d 54 68 | 65 20 6e 53 68 65 6c 6c |ces"..Th|e nShell|
|000004c0| 20 50 72 6f 67 72 61 6d | 6d 65 72 27 73 20 47 75 | Program|mer's Gu|
|000004d0| 69 64 65 20 63 6f 6e 74 | 61 69 6e 73 20 61 64 64 |ide cont|ains add|
|000004e0| 69 74 69 6f 6e 61 6c 20 | 69 6e 66 6f 72 6d 61 74 |itional |informat|
|000004f0| 69 6f 6e 20 6f 6e 20 77 | 72 69 74 69 6e 67 20 6d |ion on w|riting m|
|00000500| 61 6e 20 72 65 73 6f 75 | 72 63 65 73 2e 00 00 02 |an resou|rces....|
|00000510| 34 0d 4e 41 4d 45 0d 0d | 73 65 74 20 2d 20 73 65 |4.NAME..|set - se|
|00000520| 74 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 61 6c 20 |t enviro|nmental |
|00000530| 76 61 72 69 61 62 6c 65 | 73 0d 0d 53 59 4e 4f 50 |variable|s..SYNOP|
|00000540| 53 49 53 0d 0d 73 65 74 | 20 6e 61 6d 65 20 5b 76 |SIS..set| name [v|
|00000550| 61 6c 75 65 5d 0d 0d 44 | 45 53 43 52 49 50 54 49 |alue]..D|ESCRIPTI|
|00000560| 4f 4e 0d 0d 54 68 65 20 | 22 73 65 74 22 20 63 6f |ON..The |"set" co|
|00000570| 6d 6d 61 6e 64 20 61 6c | 6c 6f 77 73 20 74 68 65 |mmand al|lows the|
|00000580| 20 6f 70 65 72 61 74 6f | 72 20 74 6f 20 73 65 74 | operato|r to set|
|00000590| 20 76 61 72 69 61 62 6c | 65 73 20 77 69 74 68 69 | variabl|es withi|
|000005a0| 6e 20 74 68 65 20 73 68 | 65 6c 6c 20 65 6e 76 69 |n the sh|ell envi|
|000005b0| 72 6f 6e 6d 65 6e 74 2e | 20 20 54 68 65 20 6e 6f |ronment.| The no|
|000005c0| 72 6d 61 6c 20 73 79 6e | 74 61 78 20 69 6e 63 6c |rmal syn|tax incl|
|000005d0| 75 64 65 73 20 61 20 22 | 76 61 6c 75 65 22 20 73 |udes a "|value" s|
|000005e0| 74 72 69 6e 67 2e 20 20 | 49 66 20 6e 6f 20 76 61 |tring. |If no va|
|000005f0| 6c 75 65 20 69 73 20 67 | 69 76 65 6e 2c 20 74 68 |lue is g|iven, th|
|00000600| 65 20 73 68 65 6c 6c 20 | 76 61 72 69 61 62 6c 65 |e shell |variable|
|00000610| 20 69 73 20 73 65 74 20 | 65 71 75 61 6c 20 74 6f | is set |equal to|
|00000620| 20 61 20 6e 75 6c 6c 20 | 73 74 72 69 6e 67 2e 0d | a null |string..|
|00000630| 0d 56 61 72 69 61 62 6c | 65 20 6e 61 6d 65 73 20 |.Variabl|e names |
|00000640| 61 72 65 20 6c 69 6d 69 | 74 65 64 20 74 6f 20 74 |are limi|ted to t|
|00000650| 68 65 20 63 68 61 72 61 | 63 74 65 72 73 20 61 2d |he chara|cters a-|
|00000660| 7a 2c 20 41 2d 5a 2c 20 | 30 2d 39 2c 20 5f 20 61 |z, A-Z, |0-9, _ a|
|00000670| 6e 64 20 6d 61 79 20 62 | 65 20 33 31 20 63 68 61 |nd may b|e 31 cha|
|00000680| 72 61 63 74 65 72 73 20 | 69 6e 20 6c 65 6e 67 74 |racters |in lengt|
|00000690| 68 2e 20 20 54 68 65 20 | 76 61 6c 75 65 20 73 74 |h. The |value st|
|000006a0| 72 69 6e 67 20 6d 61 79 | 20 63 6f 6e 74 61 69 6e |ring may| contain|
|000006b0| 20 61 6e 79 20 63 68 61 | 72 61 63 74 65 72 20 61 | any cha|racter a|
|000006c0| 6e 64 20 6d 61 79 20 62 | 65 20 32 35 35 20 63 68 |nd may b|e 255 ch|
|000006d0| 61 72 61 63 74 65 72 73 | 20 69 6e 20 6c 65 6e 67 |aracters| in leng|
|000006e0| 74 68 2e 0d 0d 52 45 54 | 55 52 4e 20 43 4f 44 45 |th...RET|URN CODE|
|000006f0| 53 0d 0d 3c 30 09 41 6e | 20 65 72 72 6f 72 20 70 |S..<0.An| error p|
|00000700| 72 65 76 65 6e 74 65 64 | 20 74 68 65 20 61 73 73 |revented| the ass|
|00000710| 69 67 6e 6d 65 6e 74 0d | 30 09 53 75 63 63 65 73 |ignment.|0.Succes|
|00000720| 73 66 75 6c 20 61 73 73 | 69 67 6e 6d 65 6e 74 0d |sful ass|ignment.|
|00000730| 0d 53 45 45 20 41 4c 53 | 4f 0d 0d 75 6e 73 65 74 |.SEE ALS|O..unset|
|00000740| 2c 20 65 6e 76 00 00 01 | 64 0d 4e 41 4d 45 0d 0d |, env...|d.NAME..|
|00000750| 75 6e 73 65 74 20 2d 20 | 72 65 6d 6f 76 65 20 61 |unset - |remove a|
|00000760| 20 73 68 65 6c 6c 20 76 | 61 72 69 61 62 6c 65 0d | shell v|ariable.|
|00000770| 0d 53 59 4e 4f 50 53 49 | 53 0d 0d 75 6e 73 65 74 |.SYNOPSI|S..unset|
|00000780| 20 6e 61 6d 65 0d 0d 44 | 45 53 43 52 49 50 54 49 | name..D|ESCRIPTI|
|00000790| 4f 4e 0d 0d 54 68 65 20 | 22 75 6e 73 65 74 22 20 |ON..The |"unset" |
|000007a0| 63 6f 6d 6d 61 6e 64 20 | 72 65 6d 6f 76 65 73 20 |command |removes |
|000007b0| 74 68 65 20 6e 61 6d 65 | 64 20 76 61 72 69 61 62 |the name|d variab|
|000007c0| 6c 65 20 66 72 6f 6d 20 | 74 68 65 20 73 68 65 6c |le from |the shel|
|000007d0| 6c 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 2e 0d 0d |l enviro|nment...|
|000007e0| 56 61 72 69 61 62 6c 65 | 20 6e 61 6d 65 73 20 61 |Variable| names a|
|000007f0| 72 65 20 6c 69 6d 69 74 | 65 64 20 74 6f 20 74 68 |re limit|ed to th|
|00000800| 65 20 63 68 61 72 61 63 | 74 65 72 73 20 61 2d 7a |e charac|ters a-z|
|00000810| 2c 20 41 2d 5a 2c 20 30 | 2d 39 2c 20 5f 20 61 6e |, A-Z, 0|-9, _ an|
|00000820| 64 20 6d 61 79 20 62 65 | 20 33 31 20 63 68 61 72 |d may be| 31 char|
|00000830| 61 63 74 65 72 73 20 69 | 6e 20 6c 65 6e 67 74 68 |acters i|n length|
|00000840| 2e 0d 0d 52 45 54 55 52 | 4e 20 43 4f 44 45 53 0d |...RETUR|N CODES.|
|00000850| 0d 3c 30 09 41 6e 20 65 | 72 72 6f 72 20 70 72 65 |.<0.An e|rror pre|
|00000860| 76 65 6e 74 65 64 20 74 | 68 65 20 72 65 6d 6f 76 |vented t|he remov|
|00000870| 61 6c 0d 30 09 53 75 63 | 63 65 73 73 66 75 6c 20 |al.0.Suc|cessful |
|00000880| 72 65 6d 6f 76 61 6c 20 | 6f 72 20 6e 61 6d 65 20 |removal |or name |
|00000890| 6e 6f 74 20 66 6f 75 6e | 64 0d 0d 53 45 45 20 41 |not foun|d..SEE A|
|000008a0| 4c 53 4f 0d 0d 73 65 74 | 2c 20 65 6e 76 00 00 01 |LSO..set|, env...|
|000008b0| d0 0d 4e 41 4d 45 0d 0d | 65 6e 76 20 2d 20 6c 69 |..NAME..|env - li|
|000008c0| 73 74 20 73 68 65 6c 6c | 20 76 61 72 69 61 62 6c |st shell| variabl|
|000008d0| 65 73 0d 0d 53 59 4e 4f | 50 53 49 53 0d 0d 65 6e |es..SYNO|PSIS..en|
|000008e0| 76 20 5b 6e 61 6d 65 31 | 5d 20 5b 6e 61 6d 65 32 |v [name1|] [name2|
|000008f0| 5d 20 2e 20 2e 20 2e 20 | 0d 0d 44 45 53 43 52 49 |] . . . |..DESCRI|
|00000900| 50 54 49 4f 4e 0d 0d 54 | 68 65 20 22 65 6e 76 22 |PTION..T|he "env"|
|00000910| 20 63 6f 6d 6d 61 6e 64 | 20 77 69 6c 6c 20 6c 69 | command| will li|
|00000920| 73 74 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 73 |st the c|urrent s|
|00000930| 68 65 6c 6c 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |hell env|ironment|
|00000940| 2e 20 20 56 61 72 69 61 | 62 6c 65 73 20 61 72 65 |. Varia|bles are|
|00000950| 20 6c 69 73 74 65 64 20 | 77 69 74 68 20 74 68 65 | listed |with the|
|00000960| 69 72 20 76 61 6c 75 65 | 73 2e 20 20 49 66 20 6e |ir value|s. If n|
|00000970| 6f 20 70 61 72 61 6d 65 | 74 65 72 73 20 61 72 65 |o parame|ters are|
|00000980| 20 67 69 76 65 6e 2c 20 | 61 6c 6c 20 61 63 74 69 | given, |all acti|
|00000990| 76 65 20 73 68 65 6c 6c | 20 76 61 72 69 61 62 6c |ve shell| variabl|
|000009a0| 65 73 20 61 72 65 20 6c | 69 73 74 65 64 2e 0d 0d |es are l|isted...|
|000009b0| 56 61 72 69 61 62 6c 65 | 20 6e 61 6d 65 73 20 61 |Variable| names a|
|000009c0| 72 65 20 6c 69 6d 69 74 | 65 64 20 74 6f 20 74 68 |re limit|ed to th|
|000009d0| 65 20 63 68 61 72 61 63 | 74 65 72 73 20 61 2d 7a |e charac|ters a-z|
|000009e0| 2c 20 41 2d 5a 2c 20 30 | 2d 39 2c 20 5f 20 61 6e |, A-Z, 0|-9, _ an|
|000009f0| 64 20 6d 61 79 20 62 65 | 20 33 31 20 63 68 61 72 |d may be| 31 char|
|00000a00| 61 63 74 65 72 73 20 69 | 6e 20 6c 65 6e 67 74 68 |acters i|n length|
|00000a10| 2e 0d 0d 52 45 54 55 52 | 4e 20 43 4f 44 45 53 0d |...RETUR|N CODES.|
|00000a20| 0d 3c 30 09 41 6e 20 65 | 72 72 6f 72 20 70 72 65 |.<0.An e|rror pre|
|00000a30| 76 65 6e 74 65 64 20 74 | 68 65 20 73 65 61 72 63 |vented t|he searc|
|00000a40| 68 0d 30 09 53 75 63 63 | 65 73 73 66 75 6c 20 73 |h.0.Succ|essful s|
|00000a50| 65 61 72 63 68 20 28 69 | 6e 63 2e 20 6e 61 6d 65 |earch (i|nc. name|
|00000a60| 20 6e 6f 74 20 66 6f 75 | 6e 64 29 0d 0d 53 45 45 | not fou|nd)..SEE|
|00000a70| 20 41 4c 53 4f 0d 0d 73 | 65 74 2c 20 75 6e 73 65 | ALSO..s|et, unse|
|00000a80| 74 00 00 01 d8 0d 4e 41 | 4d 45 0d 0d 70 61 74 68 |t.....NA|ME..path|
|00000a90| 63 68 6b 20 2d 20 65 76 | 61 6c 75 61 74 65 73 20 |chk - ev|aluates |
|00000aa0| 61 20 66 75 6c 6c 20 6f | 72 20 70 61 72 74 69 61 |a full o|r partia|
|00000ab0| 6c 20 70 61 74 68 6e 61 | 6d 65 0d 0d 53 59 4e 4f |l pathna|me..SYNO|
|00000ac0| 50 53 49 53 0d 0d 70 61 | 74 68 63 68 6b 20 70 61 |PSIS..pa|thchk pa|
|00000ad0| 74 68 6e 61 6d 65 0d 0d | 44 45 53 43 52 49 50 54 |thname..|DESCRIPT|
|00000ae0| 49 4f 4e 0d 0d 54 68 65 | 20 6e 53 68 65 6c 6c 20 |ION..The| nShell |
|00000af0| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 20 75 73 65 73 |environm|ent uses|
|00000b00| 20 74 72 61 64 69 74 69 | 6f 6e 61 6c 20 4d 61 63 | traditi|onal Mac|
|00000b10| 69 6e 74 6f 73 68 20 70 | 61 74 68 6e 61 6d 65 73 |intosh p|athnames|
|00000b20| 2e 20 20 54 68 65 20 22 | 70 61 74 68 63 68 6b 22 |. The "|pathchk"|
|00000b30| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 69 6e 63 6c | command| is incl|
|00000b40| 75 64 65 64 20 74 6f 20 | 61 6c 6c 6f 77 20 74 68 |uded to |allow th|
|00000b50| 65 20 75 73 65 72 20 74 | 6f 20 65 78 70 65 72 69 |e user t|o experi|
|00000b60| 6d 65 6e 74 20 77 69 74 | 68 20 74 68 6f 73 65 20 |ment wit|h those |
|00000b70| 70 61 74 68 6e 61 6d 65 | 73 2e 0d 0d 47 69 76 65 |pathname|s...Give|
|00000b80| 6e 20 61 20 66 75 6c 6c | 20 6f 72 20 70 61 72 74 |n a full| or part|
|00000b90| 69 61 6c 20 70 61 74 68 | 6e 61 6d 65 2c 20 70 61 |ial path|name, pa|
|00000ba0| 74 68 63 68 6b 20 77 69 | 6c 6c 20 65 63 68 6f 20 |thchk wi|ll echo |
|00000bb0| 74 68 65 20 65 71 75 69 | 76 61 6c 65 6e 74 20 66 |the equi|valent f|
|00000bc0| 75 6c 6c 20 70 61 74 68 | 6e 61 6d 65 2e 0d 0d 50 |ull path|name...P|
|00000bd0| 61 74 68 63 68 6b 20 64 | 6f 65 73 20 6e 6f 74 20 |athchk d|oes not |
|00000be0| 63 68 65 63 6b 20 74 6f | 20 73 65 65 20 69 66 20 |check to| see if |
|00000bf0| 61 6e 79 20 6f 66 20 74 | 68 65 20 73 70 65 63 69 |any of t|he speci|
|00000c00| 66 69 65 64 20 76 6f 6c | 75 6d 65 73 2c 20 64 69 |fied vol|umes, di|
|00000c10| 72 65 63 74 6f 72 69 65 | 73 2c 20 6f 72 20 66 69 |rectorie|s, or fi|
|00000c20| 6c 65 73 20 65 78 69 73 | 74 2e 0d 0d 52 45 54 55 |les exis|t...RETU|
|00000c30| 52 4e 20 43 4f 44 45 53 | 0d 0d 3c 30 09 45 72 72 |RN CODES|..<0.Err|
|00000c40| 6f 72 0d 30 09 53 75 63 | 63 65 73 73 0d 0d 53 45 |or.0.Suc|cess..SE|
|00000c50| 45 20 41 4c 53 4f 0d 0d | 77 68 69 63 68 00 00 02 |E ALSO..|which...|
|00000c60| 44 0d 4e 41 4d 45 0d 0d | 77 68 69 63 68 20 2d 20 |D.NAME..|which - |
|00000c70| 77 68 69 63 68 20 63 6f | 70 79 20 6f 66 20 61 20 |which co|py of a |
|00000c80| 63 6f 6d 6d 61 6e 64 20 | 77 69 6c 6c 20 62 65 20 |command |will be |
|00000c90| 75 73 65 64 0d 0d 53 59 | 4e 4f 50 53 49 53 0d 0d |used..SY|NOPSIS..|
|00000ca0| 77 68 69 63 68 20 63 6f | 6d 6d 61 6e 64 0d 0d 44 |which co|mmand..D|
|00000cb0| 45 53 43 52 49 50 54 49 | 4f 4e 0d 0d 22 77 68 69 |ESCRIPTI|ON.."whi|
|00000cc0| 63 68 22 20 65 78 61 6d | 69 6e 65 73 20 74 68 65 |ch" exam|ines the|
|00000cd0| 20 63 6f 6d 6d 61 6e 64 | 2d 73 65 61 72 63 68 2d | command|-search-|
|00000ce0| 70 61 74 68 2c 20 61 6e | 64 20 72 65 74 75 72 6e |path, an|d return|
|00000cf0| 73 20 74 68 65 20 6c 6f | 63 61 74 69 6f 6e 20 6f |s the lo|cation o|
|00000d00| 66 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 77 68 |f the co|mmand wh|
|00000d10| 69 63 68 20 77 6f 75 6c | 64 20 62 65 20 65 78 65 |ich woul|d be exe|
|00000d20| 63 75 74 65 64 2e 0d 0d | 54 68 65 20 77 68 69 63 |cuted...|The whic|
|00000d30| 68 20 63 6f 6d 6d 61 6e | 64 20 66 69 72 73 74 20 |h comman|d first |
|00000d40| 63 68 65 63 6b 73 20 74 | 6f 20 73 65 65 20 69 66 |checks t|o see if|
|00000d50| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 63 | the spe|cified c|
|00000d60| 6f 6d 6d 61 6e 64 20 69 | 73 20 69 6e 74 65 72 6e |ommand i|s intern|
|00000d70| 61 6c 20 74 6f 20 74 68 | 65 20 6e 53 68 65 6c 6c |al to th|e nShell|
|00000d80| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2e 20 20 45 | applica|tion. E|
|00000d90| 61 63 68 20 64 69 72 65 | 63 74 6f 72 79 20 69 6e |ach dire|ctory in|
|00000da0| 20 74 68 65 20 73 65 61 | 72 63 68 20 70 61 74 68 | the sea|rch path|
|00000db0| 20 69 73 20 74 68 65 6e | 20 65 78 61 6d 69 6e 65 | is then| examine|
|00000dc0| 64 20 74 6f 20 73 65 65 | 20 69 66 20 69 74 20 63 |d to see| if it c|
|00000dd0| 6f 6e 74 61 69 6e 73 20 | 61 6e 20 65 78 74 65 72 |ontains |an exter|
|00000de0| 6e 61 6c 20 63 6f 6d 6d | 61 6e 64 20 6f 72 20 73 |nal comm|and or s|
|00000df0| 68 65 6c 6c 20 73 63 72 | 69 70 74 20 6f 66 20 74 |hell scr|ipt of t|
|00000e00| 68 65 20 67 69 76 65 6e | 20 6e 61 6d 65 2e 20 20 |he given| name. |
|00000e10| 41 6e 79 20 27 54 45 58 | 54 27 20 66 69 6c 65 20 |Any 'TEX|T' file |
|00000e20| 77 69 74 68 20 61 20 6d | 61 74 63 68 69 6e 67 20 |with a m|atching |
|00000e30| 6e 61 6d 65 20 69 73 20 | 61 73 73 75 6d 65 64 20 |name is |assumed |
|00000e40| 74 6f 20 62 65 20 61 20 | 73 68 65 6c 6c 20 73 63 |to be a |shell sc|
|00000e50| 72 69 70 74 2e 0d 0d 52 | 45 54 55 52 4e 20 43 4f |ript...R|ETURN CO|
|00000e60| 44 45 53 0d 0d 3c 30 09 | 45 72 72 6f 72 20 6f 72 |DES..<0.|Error or|
|00000e70| 20 63 6f 6d 6d 61 6e 64 | 20 6e 6f 74 20 66 6f 75 | command| not fou|
|00000e80| 6e 64 0d 30 09 53 75 63 | 63 65 73 73 0d 0d 53 45 |nd.0.Suc|cess..SE|
|00000e90| 45 20 41 4c 53 4f 0d 0d | 70 61 74 68 2c 20 70 61 |E ALSO..|path, pa|
|00000ea0| 74 68 63 68 6b 00 00 02 | e1 0d 4e 41 4d 45 0d 0d |thchk...|..NAME..|
|00000eb0| 70 61 74 68 20 2d 20 64 | 65 66 69 6e 65 20 61 20 |path - d|efine a |
|00000ec0| 63 6f 6d 6d 61 6e 64 20 | 73 65 61 72 63 68 20 70 |command |search p|
|00000ed0| 61 74 68 0d 0d 53 59 4e | 4f 50 53 49 53 0d 0d 70 |ath..SYN|OPSIS..p|
|00000ee0| 61 74 68 20 22 74 68 69 | 73 3a 69 73 3a 70 61 74 |ath "thi|s:is:pat|
|00000ef0| 68 3a 6f 6e 65 2f 74 68 | 69 73 3a 69 73 3a 70 61 |h:one/th|is:is:pa|
|00000f00| 74 68 3a 74 77 6f 22 0d | 0d 44 45 53 43 52 49 50 |th:two".|.DESCRIP|
|00000f10| 54 49 4f 4e 0d 0d 54 68 | 65 20 22 70 61 74 68 22 |TION..Th|e "path"|
|00000f20| 20 63 6f 6d 6d 61 6e 64 | 20 61 6c 6c 6f 77 73 20 | command| allows |
|00000f30| 74 68 65 20 75 73 65 72 | 20 74 6f 20 73 70 65 63 |the user| to spec|
|00000f40| 69 66 79 20 61 20 63 6f | 6d 6d 61 6e 64 20 73 65 |ify a co|mmand se|
|00000f50| 61 72 63 68 20 70 61 74 | 68 2e 20 20 54 68 65 20 |arch pat|h. The |
|00000f60| 70 61 74 68 20 69 73 20 | 73 74 6f 72 65 64 20 69 |path is |stored i|
|00000f70| 6e 20 74 68 65 20 24 50 | 41 54 48 20 73 68 65 6c |n the $P|ATH shel|
|00000f80| 6c 20 76 61 72 69 61 62 | 6c 65 2e 20 20 44 69 72 |l variab|le. Dir|
|00000f90| 65 63 74 6f 72 69 65 73 | 20 61 72 65 20 73 65 70 |ectories| are sep|
|00000fa0| 61 72 61 74 65 64 20 62 | 79 20 22 3a 22 2c 20 61 |arated b|y ":", a|
|00000fb0| 6e 64 20 70 61 74 68 73 | 20 61 72 65 20 73 65 70 |nd paths| are sep|
|00000fc0| 61 72 61 74 65 64 20 62 | 79 20 22 2f 22 2e 20 20 |arated b|y "/". |
|00000fd0| 41 20 73 69 6e 67 6c 65 | 20 22 3a 22 20 6d 61 79 |A single| ":" may|
|00000fe0| 20 62 65 20 75 73 65 64 | 20 74 6f 20 73 70 65 63 | be used| to spec|
|00000ff0| 69 66 79 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |ify the |current |
|00001000| 64 69 72 65 63 74 6f 72 | 79 2c 20 61 73 20 69 6e |director|y, as in|
|00001010| 20 22 70 61 74 68 20 3a | 2f 74 68 69 73 3a 69 73 | "path :|/this:is|
|00001020| 3a 70 61 74 68 3a 74 77 | 6f 22 20 2e 0d 0d 41 6e |:path:tw|o" ...An|
|00001030| 79 20 76 61 72 69 61 62 | 6c 65 73 20 75 73 65 64 |y variab|les used|
|00001040| 20 69 6e 20 74 68 65 20 | 70 61 74 68 20 61 72 65 | in the |path are|
|00001050| 20 65 76 61 6c 75 61 74 | 65 64 20 77 68 65 6e 20 | evaluat|ed when |
|00001060| 79 6f 75 20 69 73 73 75 | 65 20 74 68 65 20 70 61 |you issu|e the pa|
|00001070| 74 68 20 63 6f 6d 6d 61 | 6e 64 2e 20 20 49 6e 20 |th comma|nd. In |
|00001080| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 22 70 61 74 |the comm|and "pat|
|00001090| 68 20 24 48 4f 4d 45 3a | 62 69 6e 22 2c 20 74 68 |h $HOME:|bin", th|
|000010a0| 65 20 76 61 6c 75 65 20 | 6f 66 20 24 48 4f 4d 45 |e value |of $HOME|
|000010b0| 20 69 73 20 65 76 61 6c | 75 61 74 65 64 20 69 6d | is eval|uated im|
|000010c0| 6d 65 64 69 61 74 65 6c | 79 2e 20 20 49 66 20 79 |mediatel|y. If y|
|000010d0| 6f 75 20 63 68 61 6e 67 | 65 20 74 68 65 20 76 61 |ou chang|e the va|
|000010e0| 6c 75 65 20 6f 66 20 24 | 48 4f 4d 45 20 6c 61 74 |lue of $|HOME lat|
|000010f0| 65 72 2c 20 74 68 65 20 | 70 61 74 68 20 77 69 6c |er, the |path wil|
|00001100| 6c 20 63 6f 6e 74 69 6e | 75 65 20 74 6f 20 70 6f |l contin|ue to po|
|00001110| 69 6e 74 20 74 6f 20 74 | 68 65 20 6f 72 69 67 69 |int to t|he origi|
|00001120| 6e 61 6c 20 3a 62 69 6e | 20 64 69 72 65 63 74 6f |nal :bin| directo|
|00001130| 72 79 2e 0d 0d 54 68 65 | 20 64 65 66 61 75 6c 74 |ry...The| default|
|00001140| 20 70 61 74 68 20 69 73 | 20 22 3a 2f 24 48 4f 4d | path is| ":/$HOM|
|00001150| 45 3a 62 69 6e 22 2e 0d | 0d 52 45 54 55 52 4e 20 |E:bin"..|.RETURN |
|00001160| 43 4f 44 45 53 0d 0d 3c | 30 09 45 72 72 6f 72 0d |CODES..<|0.Error.|
|00001170| 30 09 53 75 63 63 65 73 | 73 0d 0d 53 45 45 20 41 |0.Succes|s..SEE A|
|00001180| 4c 53 4f 0d 0d 77 68 69 | 63 68 00 00 00 f7 0d 4e |LSO..whi|ch.....N|
|00001190| 41 4d 45 0d 0d 70 77 64 | 20 2d 20 70 72 69 6e 74 |AME..pwd| - print|
|000011a0| 20 77 6f 72 6b 69 6e 67 | 20 64 69 72 65 63 74 6f | working| directo|
|000011b0| 72 79 0d 0d 53 59 4e 4f | 50 53 49 53 0d 0d 70 77 |ry..SYNO|PSIS..pw|
|000011c0| 64 0d 0d 44 45 53 43 52 | 49 50 54 49 4f 4e 0d 0d |d..DESCR|IPTION..|
|000011d0| 54 68 65 20 22 70 77 64 | 22 20 63 6f 6d 6d 61 6e |The "pwd|" comman|
|000011e0| 64 20 70 72 69 6e 74 73 | 20 74 68 65 20 66 75 6c |d prints| the ful|
|000011f0| 6c 20 70 61 74 68 20 6f | 66 20 74 68 65 20 63 75 |l path o|f the cu|
|00001200| 72 72 65 6e 74 20 77 6f | 72 6b 69 6e 67 20 64 69 |rrent wo|rking di|
|00001210| 72 65 63 74 6f 72 79 2e | 20 20 54 68 65 20 77 6f |rectory.| The wo|
|00001220| 72 6b 69 6e 67 20 64 69 | 72 65 63 74 6f 72 79 20 |rking di|rectory |
|00001230| 69 73 20 73 74 6f 72 65 | 64 20 69 6e 20 74 68 65 |is store|d in the|
|00001240| 20 24 50 57 44 20 73 68 | 65 6c 6c 20 76 61 72 69 | $PWD sh|ell vari|
|00001250| 61 62 6c 65 2e 0d 0d 52 | 45 54 55 52 4e 20 43 4f |able...R|ETURN CO|
|00001260| 44 45 53 0d 0d 3c 30 09 | 45 72 72 6f 72 0d 30 09 |DES..<0.|Error.0.|
|00001270| 53 75 63 63 65 73 73 0d | 0d 53 45 45 20 41 4c 53 |Success.|.SEE ALS|
|00001280| 4f 0d 0d 63 64 00 00 02 | 30 0d 4e 41 4d 45 0d 0d |O..cd...|0.NAME..|
|00001290| 63 64 20 2d 20 63 68 61 | 6e 67 65 20 77 6f 72 6b |cd - cha|nge work|
|000012a0| 69 6e 67 20 64 69 72 65 | 63 74 6f 72 79 0d 0d 53 |ing dire|ctory..S|
|000012b0| 59 4e 4f 50 53 49 53 0d | 0d 63 64 20 22 74 68 69 |YNOPSIS.|.cd "thi|
|000012c0| 73 3a 69 73 3a 6d 79 20 | 6e 65 77 3a 70 61 74 68 |s:is:my |new:path|
|000012d0| 22 0d 0d 44 45 53 43 52 | 49 50 54 49 4f 4e 0d 0d |"..DESCR|IPTION..|
|000012e0| 54 68 65 20 22 63 64 22 | 20 63 6f 6d 6d 61 6e 64 |The "cd"| command|
|000012f0| 20 61 6c 6c 6f 77 73 20 | 74 68 65 20 75 73 65 72 | allows |the user|
|00001300| 20 74 6f 20 73 70 65 63 | 69 66 79 20 61 20 6e 65 | to spec|ify a ne|
|00001310| 77 20 77 6f 72 6b 69 6e | 67 20 64 69 72 65 63 74 |w workin|g direct|
|00001320| 6f 72 79 2e 20 20 54 68 | 65 20 77 6f 72 6b 69 6e |ory. Th|e workin|
|00001330| 67 20 64 69 72 65 63 74 | 6f 72 79 20 69 73 20 68 |g direct|ory is h|
|00001340| 65 6c 64 20 69 6e 20 74 | 68 65 20 24 50 57 44 20 |eld in t|he $PWD |
|00001350| 73 68 65 6c 6c 20 76 61 | 72 69 61 62 6c 65 2e 20 |shell va|riable. |
|00001360| 20 49 66 20 61 20 70 61 | 72 74 69 61 6c 20 70 61 | If a pa|rtial pa|
|00001370| 74 68 6e 61 6d 65 20 69 | 73 20 67 69 76 65 6e 2c |thname i|s given,|
|00001380| 20 61 20 66 75 6c 6c 20 | 70 61 74 68 20 69 73 20 | a full |path is |
|00001390| 67 65 6e 65 72 61 74 65 | 64 20 75 73 69 6e 67 20 |generate|d using |
|000013a0| 74 68 65 20 65 78 69 73 | 74 69 6e 67 20 24 50 57 |the exis|ting $PW|
|000013b0| 44 20 76 61 72 69 61 62 | 6c 65 2e 20 20 49 66 20 |D variab|le. If |
|000013c0| 6e 6f 20 70 61 74 68 6e | 61 6d 65 20 69 73 20 67 |no pathn|ame is g|
|000013d0| 69 76 65 6e 2c 20 74 68 | 65 20 75 73 65 72 20 69 |iven, th|e user i|
|000013e0| 73 20 72 65 74 75 72 6e | 65 64 20 74 6f 20 74 68 |s return|ed to th|
|000013f0| 65 20 24 48 4f 4d 45 20 | 64 69 72 65 63 74 6f 72 |e $HOME |director|
|00001400| 79 2e 0d 0d 50 61 74 68 | 6e 61 6d 65 73 20 63 6f |y...Path|names co|
|00001410| 6e 73 69 73 74 20 6f 66 | 20 76 6f 6c 75 6d 65 20 |nsist of| volume |
|00001420| 61 6e 64 20 64 69 72 65 | 63 74 6f 72 79 20 6e 61 |and dire|ctory na|
|00001430| 6d 65 73 20 73 65 70 61 | 72 61 74 65 64 20 62 79 |mes sepa|rated by|
|00001440| 20 27 3a 27 20 63 68 61 | 72 61 63 74 65 72 73 2e | ':' cha|racters.|
|00001450| 20 20 50 61 74 68 6e 61 | 6d 65 73 20 6d 61 79 20 | Pathna|mes may |
|00001460| 62 65 20 22 71 75 6f 74 | 65 64 22 2c 20 61 6e 64 |be "quot|ed", and|
|00001470| 20 6d 75 73 74 20 62 65 | 20 77 68 65 6e 20 61 20 | must be| when a |
|00001480| 76 6f 6c 75 6d 65 20 6f | 72 20 64 69 72 65 63 74 |volume o|r direct|
|00001490| 6f 72 79 20 6e 61 6d 65 | 20 63 6f 6e 74 61 69 6e |ory name| contain|
|000014a0| 73 20 61 20 73 70 61 63 | 65 2e 0d 0d 53 45 45 20 |s a spac|e...SEE |
|000014b0| 41 4c 53 4f 0d 0d 70 77 | 64 00 00 02 4e 0d 4e 41 |ALSO..pw|d...N.NA|
|000014c0| 4d 45 0d 0d 74 68 65 6e | 20 2d 20 63 6f 6e 64 69 |ME..then| - condi|
|000014d0| 74 69 6f 6e 61 6c 20 65 | 78 65 63 75 74 69 6f 6e |tional e|xecution|
|000014e0| 0d 0d 53 59 4e 4f 50 53 | 49 53 0d 0d 69 66 20 3c |..SYNOPS|IS..if <|
|000014f0| 63 6f 6d 6d 61 6e 64 73 | 31 3e 20 74 68 65 6e 20 |commands|1> then |
|00001500| 3c 63 6f 6d 6d 61 6e 64 | 73 32 3e 20 5b 65 6c 73 |<command|s2> [els|
|00001510| 65 20 3c 63 6f 6d 6d 61 | 6e 64 73 33 3e 5d 20 65 |e <comma|nds3>] e|
|00001520| 6e 64 69 66 0d 0d 44 45 | 53 43 52 49 50 54 49 4f |ndif..DE|SCRIPTIO|
|00001530| 4e 0d 0d 49 66 20 74 68 | 65 20 72 65 73 75 6c 74 |N..If th|e result|
|00001540| 20 6f 66 20 74 68 65 20 | 6c 61 73 74 20 63 6f 6d | of the |last com|
|00001550| 6d 61 6e 64 20 6f 66 20 | 74 68 65 20 73 65 74 20 |mand of |the set |
|00001560| 3c 63 6f 6d 6d 61 6e 64 | 73 31 3e 20 63 6f 6d 70 |<command|s1> comp|
|00001570| 6c 65 74 65 73 20 77 69 | 74 68 6f 75 74 20 65 72 |letes wi|thout er|
|00001580| 72 6f 72 20 28 72 65 73 | 75 6c 74 20 3d 20 7a 65 |ror (res|ult = ze|
|00001590| 72 6f 29 2c 20 74 68 65 | 6e 20 74 68 65 20 3c 63 |ro), the|n the <c|
|000015a0| 6f 6d 6d 61 6e 64 73 32 | 3e 20 63 6c 61 75 73 65 |ommands2|> clause|
|000015b0| 20 77 69 6c 6c 20 62 65 | 20 65 78 65 63 75 74 65 | will be| execute|
|000015c0| 64 2e 0d 0d 49 66 20 74 | 68 65 20 72 65 73 75 6c |d...If t|he resul|
|000015d0| 74 20 6f 66 20 74 68 65 | 20 6c 61 73 74 20 63 6f |t of the| last co|
|000015e0| 6d 6d 61 6e 64 20 6f 66 | 20 74 68 65 20 73 65 74 |mmand of| the set|
|000015f0| 20 3c 63 6f 6d 6d 61 6e | 64 73 31 3e 20 70 72 6f | <comman|ds1> pro|
|00001600| 64 75 63 65 73 20 61 6e | 20 65 72 72 6f 72 20 28 |duces an| error (|
|00001610| 72 65 73 75 6c 74 20 3c | 3e 20 7a 65 72 6f 29 2c |result <|> zero),|
|00001620| 20 61 6e 64 20 61 6e 20 | 65 6c 73 65 2d 63 6c 61 | and an |else-cla|
|00001630| 75 73 65 20 69 73 20 70 | 72 65 73 65 6e 74 2c 20 |use is p|resent, |
|00001640| 74 68 61 74 20 63 6c 61 | 75 73 65 20 77 69 6c 6c |that cla|use will|
|00001650| 20 65 78 65 63 75 74 65 | 2e 0d 0d 46 6c 6f 77 20 | execute|...Flow |
|00001660| 6f 66 20 63 6f 6e 74 72 | 6f 6c 20 73 74 61 74 65 |of contr|ol state|
|00001670| 6d 65 6e 74 73 20 61 72 | 65 20 61 76 61 69 6c 61 |ments ar|e availa|
|00001680| 62 6c 65 20 69 6e 20 6e | 53 68 65 6c 6c 2d 50 72 |ble in n|Shell-Pr|
|00001690| 6f 28 74 6d 29 0d 0d 52 | 45 54 55 52 4e 20 43 4f |o(tm)..R|ETURN CO|
|000016a0| 44 45 53 0d 0d 3c 30 09 | 45 72 72 6f 72 0d 30 09 |DES..<0.|Error.0.|
|000016b0| 53 75 63 63 65 73 73 0d | 0d 53 45 45 20 41 4c 53 |Success.|.SEE ALS|
|000016c0| 4f 0d 0d 77 68 69 6c 65 | 2c 20 75 6e 74 69 6c 0d |O..while|, until.|
|000016d0| 0d 45 58 41 4d 50 4c 45 | 53 0d 0d 69 66 20 79 65 |.EXAMPLE|S..if ye|
|000016e0| 73 6e 6f 20 22 53 68 6f | 75 6c 64 20 49 20 73 61 |sno "Sho|uld I sa|
|000016f0| 79 20 68 65 6c 6c 6f 3f | 22 20 74 68 65 6e 20 68 |y hello?|" then h|
|00001700| 65 6c 6c 6f 20 65 6e 64 | 69 66 0d 00 00 02 4b 0d |ello end|if....K.|
|00001710| 4e 41 4d 45 0d 0d 69 66 | 20 2d 20 63 6f 6e 64 69 |NAME..if| - condi|
|00001720| 74 69 6f 6e 61 6c 20 65 | 78 65 63 75 74 69 6f 6e |tional e|xecution|
|00001730| 0d 0d 53 59 4e 4f 50 53 | 49 53 0d 0d 69 66 20 3c |..SYNOPS|IS..if <|
|00001740| 63 6f 6d 6d 61 6e 64 73 | 31 3e 20 74 68 65 6e 20 |commands|1> then |
|00001750| 3c 63 6f 6d 6d 61 6e 64 | 73 32 3e 20 5b 65 6c 73 |<command|s2> [els|
|00001760| 65 20 3c 63 6f 6d 6d 61 | 6e 64 73 33 3e 5d 20 65 |e <comma|nds3>] e|
|00001770| 6e 64 69 66 0d 0d 44 45 | 53 43 52 49 50 54 49 4f |ndif..DE|SCRIPTIO|
|00001780| 4e 0d 0d 49 66 20 74 68 | 65 20 72 65 73 75 6c 74 |N..If th|e result|
|00001790| 20 6f 66 20 74 68 65 20 | 6c 61 73 74 20 63 6f 6d | of the |last com|
|000017a0| 6d 61 6e 64 20 6f 66 20 | 74 68 65 20 73 65 74 20 |mand of |the set |
|000017b0| 3c 63 6f 6d 6d 61 6e 64 | 73 31 3e 20 63 6f 6d 70 |<command|s1> comp|
|000017c0| 6c 65 74 65 73 20 77 69 | 74 68 6f 75 74 20 65 72 |letes wi|thout er|
|000017d0| 72 6f 72 20 28 72 65 73 | 75 6c 74 20 3d 20 7a 65 |ror (res|ult = ze|
|000017e0| 72 6f 29 2c 20 74 68 65 | 6e 20 74 68 65 20 3c 63 |ro), the|n the <c|
|000017f0| 6f 6d 6d 61 6e 64 73 32 | 3e 20 63 6c 61 75 73 65 |ommands2|> clause|
|00001800| 20 77 69 6c 6c 20 62 65 | 20 65 78 65 63 75 74 65 | will be| execute|
|00001810| 64 2e 0d 0d 49 66 20 74 | 68 65 20 72 65 73 75 6c |d...If t|he resul|
|00001820| 74 20 6f 66 20 74 68 65 | 20 6c 61 73 74 20 63 6f |t of the| last co|
|00001830| 6d 6d 61 6e 64 20 6f 66 | 20 74 68 65 20 73 65 74 |mmand of| the set|
|00001840| 20 3c 63 6f 6d 6d 61 6e | 64 73 31 3e 20 70 72 6f | <comman|ds1> pro|
|00001850| 64 75 63 65 73 20 61 6e | 20 65 72 72 6f 72 20 28 |duces an| error (|
|00001860| 72 65 73 75 6c 74 20 3c | 3e 20 7a 65 72 6f 29 2c |result <|> zero),|
|00001870| 20 61 6e 64 20 61 6e 20 | 65 6c 73 65 2d 63 6c 61 | and an |else-cla|
|00001880| 75 73 65 20 69 73 20 70 | 72 65 73 65 6e 74 2c 20 |use is p|resent, |
|00001890| 74 68 61 74 20 63 6c 61 | 75 73 65 20 77 69 6c 6c |that cla|use will|
|000018a0| 20 65 78 65 63 75 74 65 | 2e 0d 0d 46 6c 6f 77 20 | execute|...Flow |
|000018b0| 6f 66 20 63 6f 6e 74 72 | 6f 6c 20 73 74 61 74 65 |of contr|ol state|
|000018c0| 6d 65 6e 74 73 20 61 72 | 65 20 61 76 61 69 6c 61 |ments ar|e availa|
|000018d0| 62 6c 65 20 69 6e 20 6e | 53 68 65 6c 6c 2d 50 72 |ble in n|Shell-Pr|
|000018e0| 6f 28 74 6d 29 0d 0d 52 | 45 54 55 52 4e 20 43 4f |o(tm)..R|ETURN CO|
|000018f0| 44 45 53 0d 0d 3c 30 09 | 45 72 72 6f 72 0d 30 09 |DES..<0.|Error.0.|
|00001900| 53 75 63 63 65 73 73 0d | 0d 53 45 45 20 41 4c 53 |Success.|.SEE ALS|
|00001910| 4f 0d 0d 77 68 69 6c 65 | 2c 20 75 6e 74 69 6c 0d |O..while|, until.|
|00001920| 0d 45 58 41 4d 50 4c 45 | 53 0d 0d 69 66 20 79 65 |.EXAMPLE|S..if ye|
|00001930| 73 6e 6f 20 22 53 68 6f | 75 6c 64 20 49 20 73 61 |sno "Sho|uld I sa|
|00001940| 79 20 68 65 6c 6c 6f 3f | 22 20 74 68 65 6e 20 68 |y hello?|" then h|
|00001950| 65 6c 6c 6f 20 65 6e 64 | 69 66 00 00 02 4e 0d 4e |ello end|if...N.N|
|00001960| 41 4d 45 0d 0d 65 6c 73 | 65 20 2d 20 63 6f 6e 64 |AME..els|e - cond|
|00001970| 69 74 69 6f 6e 61 6c 20 | 65 78 65 63 75 74 69 6f |itional |executio|
|00001980| 6e 0d 0d 53 59 4e 4f 50 | 53 49 53 0d 0d 69 66 20 |n..SYNOP|SIS..if |
|00001990| 3c 63 6f 6d 6d 61 6e 64 | 73 31 3e 20 74 68 65 6e |<command|s1> then|
|000019a0| 20 3c 63 6f 6d 6d 61 6e | 64 73 32 3e 20 5b 65 6c | <comman|ds2> [el|
|000019b0| 73 65 20 3c 63 6f 6d 6d | 61 6e 64 73 33 3e 5d 20 |se <comm|ands3>] |
|000019c0| 65 6e 64 69 66 0d 0d 44 | 45 53 43 52 49 50 54 49 |endif..D|ESCRIPTI|
|000019d0| 4f 4e 0d 0d 49 66 20 74 | 68 65 20 72 65 73 75 6c |ON..If t|he resul|
|000019e0| 74 20 6f 66 20 74 68 65 | 20 6c 61 73 74 20 63 6f |t of the| last co|
|000019f0| 6d 6d 61 6e 64 20 6f 66 | 20 74 68 65 20 73 65 74 |mmand of| the set|
|00001a00| 20 3c 63 6f 6d 6d 61 6e | 64 73 31 3e 20 63 6f 6d | <comman|ds1> com|
|00001a10| 70 6c 65 74 65 73 20 77 | 69 74 68 6f 75 74 20 65 |pletes w|ithout e|
|00001a20| 72 72 6f 72 20 28 72 65 | 73 75 6c 74 20 3d 20 7a |rror (re|sult = z|
|00001a30| 65 72 6f 29 2c 20 74 68 | 65 6e 20 74 68 65 20 3c |ero), th|en the <|
|00001a40| 63 6f 6d 6d 61 6e 64 73 | 32 3e 20 63 6c 61 75 73 |commands|2> claus|
|00001a50| 65 20 77 69 6c 6c 20 62 | 65 20 65 78 65 63 75 74 |e will b|e execut|
|00001a60| 65 64 2e 0d 0d 49 66 20 | 74 68 65 20 72 65 73 75 |ed...If |the resu|
|00001a70| 6c 74 20 6f 66 20 74 68 | 65 20 6c 61 73 74 20 63 |lt of th|e last c|
|00001a80| 6f 6d 6d 61 6e 64 20 6f | 66 20 74 68 65 20 73 65 |ommand o|f the se|
|00001a90| 74 20 3c 63 6f 6d 6d 61 | 6e 64 73 31 3e 20 70 72 |t <comma|nds1> pr|
|00001aa0| 6f 64 75 63 65 73 20 61 | 6e 20 65 72 72 6f 72 20 |oduces a|n error |
|00001ab0| 28 72 65 73 75 6c 74 20 | 3c 3e 20 7a 65 72 6f 29 |(result |<> zero)|
|00001ac0| 2c 20 61 6e 64 20 61 6e | 20 65 6c 73 65 2d 63 6c |, and an| else-cl|
|00001ad0| 61 75 73 65 20 69 73 20 | 70 72 65 73 65 6e 74 2c |ause is |present,|
|00001ae0| 20 74 68 61 74 20 63 6c | 61 75 73 65 20 77 69 6c | that cl|ause wil|
|00001af0| 6c 20 65 78 65 63 75 74 | 65 2e 0d 0d 46 6c 6f 77 |l execut|e...Flow|
|00001b00| 20 6f 66 20 63 6f 6e 74 | 72 6f 6c 20 73 74 61 74 | of cont|rol stat|
|00001b10| 65 6d 65 6e 74 73 20 61 | 72 65 20 61 76 61 69 6c |ements a|re avail|
|00001b20| 61 62 6c 65 20 69 6e 20 | 6e 53 68 65 6c 6c 2d 50 |able in |nShell-P|
|00001b30| 72 6f 28 74 6d 29 0d 0d | 52 45 54 55 52 4e 20 43 |ro(tm)..|RETURN C|
|00001b40| 4f 44 45 53 0d 0d 3c 30 | 09 45 72 72 6f 72 0d 30 |ODES..<0|.Error.0|
|00001b50| 09 53 75 63 63 65 73 73 | 0d 0d 53 45 45 20 41 4c |.Success|..SEE AL|
|00001b60| 53 4f 0d 0d 77 68 69 6c | 65 2c 20 75 6e 74 69 6c |SO..whil|e, until|
|00001b70| 0d 0d 45 58 41 4d 50 4c | 45 53 0d 0d 69 66 20 79 |..EXAMPL|ES..if y|
|00001b80| 65 73 6e 6f 20 22 53 68 | 6f 75 6c 64 20 49 20 73 |esno "Sh|ould I s|
|00001b90| 61 79 20 68 65 6c 6c 6f | 3f 22 20 74 68 65 6e 20 |ay hello|?" then |
|00001ba0| 68 65 6c 6c 6f 20 65 6e | 64 69 66 0d 00 00 02 4f |hello en|dif....O|
|00001bb0| 0d 4e 41 4d 45 0d 0d 65 | 6e 64 69 66 20 2d 20 63 |.NAME..e|ndif - c|
|00001bc0| 6f 6e 64 69 74 69 6f 6e | 61 6c 20 65 78 65 63 75 |ondition|al execu|
|00001bd0| 74 69 6f 6e 0d 0d 53 59 | 4e 4f 50 53 49 53 0d 0d |tion..SY|NOPSIS..|
|00001be0| 69 66 20 3c 63 6f 6d 6d | 61 6e 64 73 31 3e 20 74 |if <comm|ands1> t|
|00001bf0| 68 65 6e 20 3c 63 6f 6d | 6d 61 6e 64 73 32 3e 20 |hen <com|mands2> |
|00001c00| 5b 65 6c 73 65 20 3c 63 | 6f 6d 6d 61 6e 64 73 33 |[else <c|ommands3|
|00001c10| 3e 5d 20 65 6e 64 69 66 | 0d 0d 44 45 53 43 52 49 |>] endif|..DESCRI|
|00001c20| 50 54 49 4f 4e 0d 0d 49 | 66 20 74 68 65 20 72 65 |PTION..I|f the re|
|00001c30| 73 75 6c 74 20 6f 66 20 | 74 68 65 20 6c 61 73 74 |sult of |the last|
|00001c40| 20 63 6f 6d 6d 61 6e 64 | 20 6f 66 20 74 68 65 20 | command| of the |
|00001c50| 73 65 74 20 3c 63 6f 6d | 6d 61 6e 64 73 31 3e 20 |set <com|mands1> |
|00001c60| 63 6f 6d 70 6c 65 74 65 | 73 20 77 69 74 68 6f 75 |complete|s withou|
|00001c70| 74 20 65 72 72 6f 72 20 | 28 72 65 73 75 6c 74 20 |t error |(result |
|00001c80| 3d 20 7a 65 72 6f 29 2c | 20 74 68 65 6e 20 74 68 |= zero),| then th|
|00001c90| 65 20 3c 63 6f 6d 6d 61 | 6e 64 73 32 3e 20 63 6c |e <comma|nds2> cl|
|00001ca0| 61 75 73 65 20 77 69 6c | 6c 20 62 65 20 65 78 65 |ause wil|l be exe|
|00001cb0| 63 75 74 65 64 2e 0d 0d | 49 66 20 74 68 65 20 72 |cuted...|If the r|
|00001cc0| 65 73 75 6c 74 20 6f 66 | 20 74 68 65 20 6c 61 73 |esult of| the las|
|00001cd0| 74 20 63 6f 6d 6d 61 6e | 64 20 6f 66 20 74 68 65 |t comman|d of the|
|00001ce0| 20 73 65 74 20 3c 63 6f | 6d 6d 61 6e 64 73 31 3e | set <co|mmands1>|
|00001cf0| 20 70 72 6f 64 75 63 65 | 73 20 61 6e 20 65 72 72 | produce|s an err|
|00001d00| 6f 72 20 28 72 65 73 75 | 6c 74 20 3c 3e 20 7a 65 |or (resu|lt <> ze|
|00001d10| 72 6f 29 2c 20 61 6e 64 | 20 61 6e 20 65 6c 73 65 |ro), and| an else|
|00001d20| 2d 63 6c 61 75 73 65 20 | 69 73 20 70 72 65 73 65 |-clause |is prese|
|00001d30| 6e 74 2c 20 74 68 61 74 | 20 63 6c 61 75 73 65 20 |nt, that| clause |
|00001d40| 77 69 6c 6c 20 65 78 65 | 63 75 74 65 2e 0d 0d 46 |will exe|cute...F|
|00001d50| 6c 6f 77 20 6f 66 20 63 | 6f 6e 74 72 6f 6c 20 73 |low of c|ontrol s|
|00001d60| 74 61 74 65 6d 65 6e 74 | 73 20 61 72 65 20 61 76 |tatement|s are av|
|00001d70| 61 69 6c 61 62 6c 65 20 | 69 6e 20 6e 53 68 65 6c |ailable |in nShel|
|00001d80| 6c 2d 50 72 6f 28 74 6d | 29 0d 0d 52 45 54 55 52 |l-Pro(tm|)..RETUR|
|00001d90| 4e 20 43 4f 44 45 53 0d | 0d 3c 30 09 45 72 72 6f |N CODES.|.<0.Erro|
|00001da0| 72 0d 30 09 53 75 63 63 | 65 73 73 0d 0d 53 45 45 |r.0.Succ|ess..SEE|
|00001db0| 20 41 4c 53 4f 0d 0d 77 | 68 69 6c 65 2c 20 75 6e | ALSO..w|hile, un|
|00001dc0| 74 69 6c 0d 0d 45 58 41 | 4d 50 4c 45 53 0d 0d 69 |til..EXA|MPLES..i|
|00001dd0| 66 20 79 65 73 6e 6f 20 | 22 53 68 6f 75 6c 64 20 |f yesno |"Should |
|00001de0| 49 20 73 61 79 20 68 65 | 6c 6c 6f 3f 22 20 74 68 |I say he|llo?" th|
|00001df0| 65 6e 20 68 65 6c 6c 6f | 20 65 6e 64 69 66 0d 00 |en hello| endif..|
|00001e00| 00 02 6c 0d 4e 41 4d 45 | 0d 0d 77 68 69 6c 65 20 |..l.NAME|..while |
|00001e10| 2d 20 63 6f 6e 64 69 74 | 69 6f 6e 61 6c 20 65 78 |- condit|ional ex|
|00001e20| 65 63 75 74 69 6f 6e 0d | 0d 53 59 4e 4f 50 53 49 |ecution.|.SYNOPSI|
|00001e30| 53 0d 0d 77 68 69 6c 65 | 20 3c 63 6f 6d 6d 61 6e |S..while| <comman|
|00001e40| 64 73 31 3e 20 64 6f 20 | 3c 63 6f 6d 6d 61 6e 64 |ds1> do |<command|
|00001e50| 73 32 3e 20 64 6f 6e 65 | 0d 0d 44 45 53 43 52 49 |s2> done|..DESCRI|
|00001e60| 50 54 49 4f 4e 0d 0d 49 | 6e 20 74 68 69 73 20 73 |PTION..I|n this s|
|00001e70| 74 72 75 63 74 75 72 65 | 2c 20 74 68 65 20 3c 63 |tructure|, the <c|
|00001e80| 6f 6d 6d 61 6e 64 73 31 | 3e 20 63 6c 61 75 73 65 |ommands1|> clause|
|00001e90| 20 77 69 6c 6c 20 61 6c | 77 61 79 73 20 65 78 65 | will al|ways exe|
|00001ea0| 63 75 74 65 2e 20 20 49 | 66 20 74 68 65 20 72 65 |cute. I|f the re|
|00001eb0| 73 75 6c 74 20 6f 66 20 | 74 68 65 20 6c 61 73 74 |sult of |the last|
|00001ec0| 20 63 6f 6d 6d 61 6e 64 | 20 6f 66 20 74 68 65 20 | command| of the |
|00001ed0| 73 65 74 20 63 6f 6d 70 | 6c 65 74 65 73 20 77 69 |set comp|letes wi|
|00001ee0| 74 68 6f 75 74 20 65 72 | 72 6f 72 20 28 72 65 73 |thout er|ror (res|
|00001ef0| 75 6c 74 20 3d 20 7a 65 | 72 6f 29 2c 20 74 68 65 |ult = ze|ro), the|
|00001f00| 6e 20 74 68 65 20 3c 63 | 6f 6d 6d 61 6e 64 73 32 |n the <c|ommands2|
|00001f10| 3e 20 63 6c 61 75 73 65 | 20 77 69 6c 6c 20 62 65 |> clause| will be|
|00001f20| 20 65 78 65 63 75 74 65 | 64 2e 20 20 43 6f 6e 74 | execute|d. Cont|
|00001f30| 72 6f 6c 20 77 69 6c 6c | 20 74 68 65 6e 20 72 65 |rol will| then re|
|00001f40| 74 75 72 6e 20 74 6f 20 | 74 68 65 20 3c 63 6f 6d |turn to |the <com|
|00001f50| 6d 61 6e 64 73 31 3e 20 | 63 6c 61 75 73 65 2c 20 |mands1> |clause, |
|00001f60| 61 6e 64 20 74 68 65 20 | 70 72 6f 63 65 73 73 20 |and the |process |
|00001f70| 77 69 6c 6c 20 63 6f 6e | 74 69 6e 75 65 20 75 6e |will con|tinue un|
|00001f80| 74 69 6c 20 74 68 65 20 | 6c 61 73 74 20 63 6f 6d |til the |last com|
|00001f90| 6d 61 6e 64 20 6f 66 20 | 74 68 69 73 20 73 65 74 |mand of |this set|
|00001fa0| 20 70 72 6f 64 75 63 65 | 73 20 61 6e 20 65 72 72 | produce|s an err|
|00001fb0| 6f 72 20 28 72 65 73 75 | 6c 74 20 3c 3e 20 30 29 |or (resu|lt <> 0)|
|00001fc0| 2e 0d 0d 46 6c 6f 77 20 | 6f 66 20 63 6f 6e 74 72 |...Flow |of contr|
|00001fd0| 6f 6c 20 73 74 61 74 65 | 6d 65 6e 74 73 20 61 72 |ol state|ments ar|
|00001fe0| 65 20 61 76 61 69 6c 61 | 62 6c 65 20 69 6e 20 6e |e availa|ble in n|
|00001ff0| 53 68 65 6c 6c 2d 50 72 | 6f 28 74 6d 29 0d 0d 52 |Shell-Pr|o(tm)..R|
|00002000| 45 54 55 52 4e 20 43 4f | 44 45 53 0d 0d 3c 30 09 |ETURN CO|DES..<0.|
|00002010| 45 72 72 6f 72 0d 30 09 | 53 75 63 63 65 73 73 0d |Error.0.|Success.|
|00002020| 0d 53 45 45 20 41 4c 53 | 4f 0d 0d 75 6e 74 69 6c |.SEE ALS|O..until|
|00002030| 2c 20 69 66 0d 0d 45 58 | 41 4d 50 4c 45 53 0d 0d |, if..EX|AMPLES..|
|00002040| 77 68 69 6c 65 20 79 65 | 73 6e 6f 20 22 53 68 6f |while ye|sno "Sho|
|00002050| 75 6c 64 20 49 20 73 61 | 79 20 68 65 6c 6c 6f 3f |uld I sa|y hello?|
|00002060| 22 20 64 6f 20 68 65 6c | 6c 6f 20 64 6f 6e 65 00 |" do hel|lo done.|
|00002070| 00 02 74 0d 4e 41 4d 45 | 0d 0d 75 6e 74 69 6c 20 |..t.NAME|..until |
|00002080| 2d 20 63 6f 6e 64 69 74 | 69 6f 6e 61 6c 20 65 78 |- condit|ional ex|
|00002090| 65 63 75 74 69 6f 6e 0d | 0d 53 59 4e 4f 50 53 49 |ecution.|.SYNOPSI|
|000020a0| 53 0d 0d 75 6e 74 69 6c | 20 3c 63 6f 6d 6d 61 6e |S..until| <comman|
|000020b0| 64 73 31 3e 20 64 6f 20 | 3c 63 6f 6d 6d 61 6e 64 |ds1> do |<command|
|000020c0| 73 32 3e 20 64 6f 6e 65 | 0d 0d 44 45 53 43 52 49 |s2> done|..DESCRI|
|000020d0| 50 54 49 4f 4e 0d 0d 49 | 6e 20 74 68 69 73 20 73 |PTION..I|n this s|
|000020e0| 74 72 75 63 74 75 72 65 | 2c 20 74 68 65 20 3c 63 |tructure|, the <c|
|000020f0| 6f 6d 6d 61 6e 64 73 31 | 3e 20 63 6c 61 75 73 65 |ommands1|> clause|
|00002100| 20 77 69 6c 6c 20 61 6c | 77 61 79 73 20 65 78 65 | will al|ways exe|
|00002110| 63 75 74 65 2e 20 20 49 | 66 20 74 68 65 20 72 65 |cute. I|f the re|
|00002120| 73 75 6c 74 20 6f 66 20 | 74 68 65 20 6c 61 73 74 |sult of |the last|
|00002130| 20 63 6f 6d 6d 61 6e 64 | 20 6f 66 20 74 68 65 20 | command| of the |
|00002140| 73 65 74 20 70 72 6f 64 | 75 63 65 73 20 61 6e 20 |set prod|uces an |
|00002150| 65 72 72 6f 72 20 28 72 | 65 73 75 6c 74 20 3c 3e |error (r|esult <>|
|00002160| 20 7a 65 72 6f 29 2c 20 | 74 68 65 6e 20 74 68 65 | zero), |then the|
|00002170| 20 3c 63 6f 6d 6d 61 6e | 64 73 32 3e 20 63 6c 61 | <comman|ds2> cla|
|00002180| 75 73 65 20 77 69 6c 6c | 20 62 65 20 65 78 65 63 |use will| be exec|
|00002190| 75 74 65 64 2e 20 20 43 | 6f 6e 74 72 6f 6c 20 77 |uted. C|ontrol w|
|000021a0| 69 6c 6c 20 74 68 65 6e | 20 72 65 74 75 72 6e 20 |ill then| return |
|000021b0| 74 6f 20 74 68 65 20 3c | 63 6f 6d 6d 61 6e 64 73 |to the <|commands|
|000021c0| 31 3e 20 63 6c 61 75 73 | 65 2c 20 61 6e 64 20 74 |1> claus|e, and t|
|000021d0| 68 65 20 70 72 6f 63 65 | 73 73 20 77 69 6c 6c 20 |he proce|ss will |
|000021e0| 63 6f 6e 74 69 6e 75 65 | 20 75 6e 74 69 6c 20 74 |continue| until t|
|000021f0| 68 65 20 6c 61 73 74 20 | 63 6f 6d 6d 61 6e 64 20 |he last |command |
|00002200| 6f 66 20 74 68 69 73 20 | 73 65 74 20 63 6f 6d 70 |of this |set comp|
|00002210| 6c 65 74 65 73 20 77 69 | 74 68 6f 75 74 20 65 72 |letes wi|thout er|
|00002220| 72 6f 72 20 28 72 65 73 | 75 6c 74 20 3d 20 30 29 |ror (res|ult = 0)|
|00002230| 2e 0d 0d 46 6c 6f 77 20 | 6f 66 20 63 6f 6e 74 72 |...Flow |of contr|
|00002240| 6f 6c 20 73 74 61 74 65 | 6d 65 6e 74 73 20 61 72 |ol state|ments ar|
|00002250| 65 20 61 76 61 69 6c 61 | 62 6c 65 20 69 6e 20 6e |e availa|ble in n|
|00002260| 53 68 65 6c 6c 2d 50 72 | 6f 28 74 6d 29 0d 0d 52 |Shell-Pr|o(tm)..R|
|00002270| 45 54 55 52 4e 20 43 4f | 44 45 53 0d 0d 3c 30 09 |ETURN CO|DES..<0.|
|00002280| 45 72 72 6f 72 0d 30 09 | 53 75 63 63 65 73 73 0d |Error.0.|Success.|
|00002290| 0d 53 45 45 20 41 4c 53 | 4f 0d 0d 77 68 69 6c 65 |.SEE ALS|O..while|
|000022a0| 2c 20 69 66 0d 0d 45 58 | 41 4d 50 4c 45 53 0d 0d |, if..EX|AMPLES..|
|000022b0| 75 6e 74 69 6c 20 79 65 | 73 6e 6f 20 22 53 68 6f |until ye|sno "Sho|
|000022c0| 75 6c 64 20 49 20 53 54 | 4f 50 20 73 61 79 69 6e |uld I ST|OP sayin|
|000022d0| 67 20 68 65 6c 6c 6f 3f | 22 20 64 6f 20 68 65 6c |g hello?|" do hel|
|000022e0| 6c 6f 20 64 6f 6e 65 00 | 00 00 ca 0d 4e 41 4d 45 |lo done.|....NAME|
|000022f0| 0d 0d 64 6f 20 2d 20 63 | 6f 6e 64 69 74 69 6f 6e |..do - c|ondition|
|00002300| 61 6c 20 65 78 65 63 75 | 74 69 6f 6e 0d 0d 53 59 |al execu|tion..SY|
|00002310| 4e 4f 50 53 49 53 0d 0d | 77 68 69 6c 65 20 3c 63 |NOPSIS..|while <c|
|00002320| 6f 6d 6d 61 6e 64 73 31 | 3e 20 64 6f 20 3c 63 6f |ommands1|> do <co|
|00002330| 6d 6d 61 6e 64 73 32 3e | 20 64 6f 6e 65 0d 0d 6f |mmands2>| done..o|
|00002340| 72 0d 0d 75 6e 74 69 6c | 20 3c 63 6f 6d 6d 61 6e |r..until| <comman|
|00002350| 64 73 31 3e 20 64 6f 20 | 3c 63 6f 6d 6d 61 6e 64 |ds1> do |<command|
|00002360| 73 32 3e 20 64 6f 6e 65 | 0d 0d 44 45 53 43 52 49 |s2> done|..DESCRI|
|00002370| 50 54 49 4f 4e 0d 0d 53 | 65 65 20 74 68 65 20 6d |PTION..S|ee the m|
|00002380| 61 6e 20 70 61 67 65 20 | 66 6f 72 20 22 77 68 69 |an page |for "whi|
|00002390| 6c 65 22 20 6f 72 20 22 | 75 6e 74 69 6c 22 20 66 |le" or "|until" f|
|000023a0| 6f 72 20 6d 6f 72 65 20 | 69 6e 66 6f 72 6d 61 74 |or more |informat|
|000023b0| 69 6f 6e 2e 0d 00 00 00 | cc 0d 4e 41 4d 45 0d 0d |ion.....|..NAME..|
|000023c0| 64 6f 6e 65 20 2d 20 63 | 6f 6e 64 69 74 69 6f 6e |done - c|ondition|
|000023d0| 61 6c 20 65 78 65 63 75 | 74 69 6f 6e 0d 0d 53 59 |al execu|tion..SY|
|000023e0| 4e 4f 50 53 49 53 0d 0d | 77 68 69 6c 65 20 3c 63 |NOPSIS..|while <c|
|000023f0| 6f 6d 6d 61 6e 64 73 31 | 3e 20 64 6f 20 3c 63 6f |ommands1|> do <co|
|00002400| 6d 6d 61 6e 64 73 32 3e | 20 64 6f 6e 65 0d 0d 6f |mmands2>| done..o|
|00002410| 72 0d 0d 75 6e 74 69 6c | 20 3c 63 6f 6d 6d 61 6e |r..until| <comman|
|00002420| 64 73 31 3e 20 64 6f 20 | 3c 63 6f 6d 6d 61 6e 64 |ds1> do |<command|
|00002430| 73 32 3e 20 64 6f 6e 65 | 0d 0d 44 45 53 43 52 49 |s2> done|..DESCRI|
|00002440| 50 54 49 4f 4e 0d 0d 53 | 65 65 20 74 68 65 20 6d |PTION..S|ee the m|
|00002450| 61 6e 20 70 61 67 65 20 | 66 6f 72 20 22 77 68 69 |an page |for "whi|
|00002460| 6c 65 22 20 6f 72 20 22 | 75 6e 74 69 6c 22 20 66 |le" or "|until" f|
|00002470| 6f 72 20 6d 6f 72 65 20 | 69 6e 66 6f 72 6d 61 74 |or more |informat|
|00002480| 69 6f 6e 2e 0d 00 00 01 | e0 0d 4e 41 4d 45 0d 0d |ion.....|..NAME..|
|00002490| 65 78 69 74 20 2d 20 65 | 78 69 74 20 73 63 72 69 |exit - e|xit scri|
|000024a0| 70 74 0d 0d 53 59 4e 4f | 50 53 49 53 0d 0d 65 78 |pt..SYNO|PSIS..ex|
|000024b0| 69 74 20 5b 72 65 74 75 | 72 6e 20 63 6f 64 65 5d |it [retu|rn code]|
|000024c0| 0d 0d 44 45 53 43 52 49 | 50 54 49 4f 4e 0d 0d 54 |..DESCRI|PTION..T|
|000024d0| 68 65 20 22 65 78 69 74 | 22 20 63 6f 6d 6d 61 6e |he "exit|" comman|
|000024e0| 64 20 63 61 75 73 65 73 | 20 61 6e 20 69 6d 6d 65 |d causes| an imme|
|000024f0| 64 69 61 74 65 20 72 65 | 74 75 72 6e 20 66 72 6f |diate re|turn fro|
|00002500| 6d 20 61 20 73 63 72 69 | 70 74 2e 20 20 41 6e 20 |m a scri|pt. An |
|00002510| 69 6e 74 65 67 65 72 20 | 72 65 74 75 72 6e 20 63 |integer |return c|
|00002520| 6f 64 65 20 6d 61 79 20 | 62 65 20 73 65 74 20 61 |ode may |be set a|
|00002530| 6e 64 20 6c 61 74 65 72 | 20 61 63 63 65 73 73 65 |nd later| accesse|
|00002540| 64 20 75 73 69 6e 67 20 | 74 68 65 20 24 3f 20 70 |d using |the $? p|
|00002550| 73 65 75 64 6f 20 76 61 | 72 69 61 62 6c 65 2e 20 |seudo va|riable. |
|00002560| 20 57 68 65 6e 20 6e 6f | 20 70 61 72 61 6d 65 74 | When no| paramet|
|00002570| 65 72 20 69 73 20 67 69 | 76 65 6e 2c 20 61 20 63 |er is gi|ven, a c|
|00002580| 6f 64 65 20 6f 66 20 30 | 20 69 73 20 72 65 74 75 |ode of 0| is retu|
|00002590| 72 6e 65 64 2e 0d 0d 57 | 68 65 6e 20 74 68 65 20 |rned...W|hen the |
|000025a0| 22 65 78 69 74 22 20 63 | 6f 6d 6d 61 6e 64 20 69 |"exit" c|ommand i|
|000025b0| 73 20 75 73 65 64 20 6f | 6e 20 74 68 65 20 63 6f |s used o|n the co|
|000025c0| 6d 6d 61 6e 64 20 6c 69 | 6e 65 2c 20 69 74 20 63 |mmand li|ne, it c|
|000025d0| 61 6e 63 65 6c 73 20 61 | 6c 6c 20 70 72 6f 63 65 |ancels a|ll proce|
|000025e0| 73 73 69 6e 67 20 61 6e | 64 20 73 65 74 73 20 74 |ssing an|d sets t|
|000025f0| 68 65 20 73 70 65 63 69 | 66 69 65 64 20 72 65 74 |he speci|fied ret|
|00002600| 75 72 6e 20 63 6f 64 65 | 2e 0d 0d 45 58 41 4d 50 |urn code|...EXAMP|
|00002610| 4c 45 53 0d 0d 23 0d 23 | 20 74 65 73 74 20 75 73 |LES..#.#| test us|
|00002620| 61 67 65 0d 23 0d 69 66 | 20 2e 6e 65 2e 20 24 23 |age.#.if| .ne. $#|
|00002630| 20 32 20 74 68 65 6e 0d | 20 20 20 20 65 63 68 6f | 2 then.| echo|
|00002640| 20 22 55 73 61 67 65 3a | 20 63 6d 64 20 66 69 6c | "Usage:| cmd fil|
|00002650| 65 6e 61 6d 65 22 0d 20 | 20 20 20 65 78 69 74 20 |ename". | exit |
|00002660| 2d 31 0d 65 6e 64 69 66 | 0d 00 00 02 55 0d 4e 41 |-1.endif|....U.NA|
|00002670| 4d 45 0d 0d 65 78 70 6f | 72 74 20 2d 20 65 78 70 |ME..expo|rt - exp|
|00002680| 6f 72 74 20 61 20 73 68 | 65 6c 6c 20 76 61 72 69 |ort a sh|ell vari|
|00002690| 61 62 6c 65 20 66 72 6f | 6d 20 61 20 73 63 72 69 |able fro|m a scri|
|000026a0| 70 74 0d 0d 53 59 4e 4f | 50 53 49 53 0d 0d 65 78 |pt..SYNO|PSIS..ex|
|000026b0| 70 6f 72 74 20 76 61 72 | 69 61 62 6c 65 5f 6e 61 |port var|iable_na|
|000026c0| 6d 65 0d 0d 44 45 53 43 | 52 49 50 54 49 4f 4e 0d |me..DESC|RIPTION.|
|000026d0| 0d 54 68 65 20 22 65 78 | 70 6f 72 74 22 20 63 6f |.The "ex|port" co|
|000026e0| 6d 6d 61 6e 64 20 63 6f | 70 69 65 73 20 61 20 73 |mmand co|pies a s|
|000026f0| 68 65 6c 6c 20 76 61 72 | 69 61 62 6c 65 20 66 72 |hell var|iable fr|
|00002700| 6f 6d 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 73 |om the c|urrent s|
|00002710| 63 72 69 70 74 20 65 6e | 76 69 72 6f 6e 6d 65 6e |cript en|vironmen|
|00002720| 74 20 74 6f 20 74 68 61 | 74 20 6f 66 20 74 68 65 |t to tha|t of the|
|00002730| 20 70 61 72 65 6e 74 2e | 20 20 54 68 65 20 22 65 | parent.| The "e|
|00002740| 78 70 6f 72 74 22 20 6f | 70 65 72 61 74 69 6f 6e |xport" o|peration|
|00002750| 20 63 6f 70 69 65 73 20 | 76 61 72 69 61 62 6c 65 | copies |variable|
|00002760| 73 20 75 70 20 61 20 73 | 69 6e 67 6c 65 20 6c 65 |s up a s|ingle le|
|00002770| 76 65 6c 2e 20 20 54 6f | 20 65 78 70 6f 72 74 20 |vel. To| export |
|00002780| 76 61 72 69 61 62 6c 65 | 73 20 66 72 6f 6d 20 6e |variable|s from n|
|00002790| 65 73 74 65 64 20 73 63 | 72 69 70 74 73 2c 20 61 |ested sc|ripts, a|
|000027a0| 20 73 65 72 69 65 73 20 | 6f 66 20 22 65 78 70 6f | series |of "expo|
|000027b0| 72 74 22 20 63 6f 6d 6d | 61 6e 64 73 20 77 6f 75 |rt" comm|ands wou|
|000027c0| 6c 64 20 62 65 20 72 65 | 71 75 69 72 65 64 2e 0d |ld be re|quired..|
|000027d0| 0d 54 68 65 20 22 65 78 | 70 6f 72 74 22 20 63 6f |.The "ex|port" co|
|000027e0| 6d 6d 61 6e 64 20 73 68 | 6f 75 6c 64 20 6f 6e 6c |mmand sh|ould onl|
|000027f0| 79 20 62 65 20 75 73 65 | 64 20 66 72 6f 6d 20 77 |y be use|d from w|
|00002800| 69 74 68 69 6e 20 73 63 | 72 69 70 74 73 2c 20 61 |ithin sc|ripts, a|
|00002810| 6e 64 20 66 61 69 6c 73 | 20 77 68 65 6e 20 74 79 |nd fails| when ty|
|00002820| 70 65 64 20 64 69 72 65 | 63 74 6c 79 20 6f 6e 20 |ped dire|ctly on |
|00002830| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |the comm|and line|
|00002840| 2e 0d 0d 45 58 41 4d 50 | 4c 45 53 0d 0d 23 0d 23 |...EXAMP|LES..#.#|
|00002850| 20 73 65 74 20 74 68 65 | 20 77 6f 72 6b 69 6e 67 | set the| working|
|00002860| 20 64 69 72 65 63 74 6f | 72 79 20 61 6e 64 20 65 | directo|ry and e|
|00002870| 78 70 6f 72 74 20 74 68 | 65 20 63 6f 72 72 65 73 |xport th|e corres|
|00002880| 70 6f 6e 64 69 6e 67 20 | 76 61 72 69 61 62 6c 65 |ponding |variable|
|00002890| 0d 23 0d 63 64 20 22 6d | 79 20 64 69 73 6b 3a 6d |.#.cd "m|y disk:m|
|000028a0| 79 20 66 61 76 6f 72 69 | 74 65 20 74 6f 6f 6c 73 |y favori|te tools|
|000028b0| 3a 74 6f 6f 6c 73 22 0d | 65 78 70 6f 72 74 20 50 |:tools".|export P|
|000028c0| 57 44 00 00 01 00 00 00 | 28 42 00 00 27 42 00 00 |WD......|(B..'B..|
|000028d0| 02 8b 00 5a ca 84 0a a8 | 00 00 00 1c 01 36 00 01 |...Z....|.....6..|
|000028e0| 54 45 58 54 00 13 00 12 | 76 65 72 73 00 01 01 02 |TEXT....|vers....|
|000028f0| 3e 80 01 33 00 00 01 86 | 00 00 00 00 3e 8a 01 43 |>..3....|....>..C|
|00002900| 00 00 00 00 00 00 00 00 | 3e 94 00 00 00 00 03 8d |........|>.......|
|00002910| 00 00 00 00 3e 9e 00 10 | 00 00 05 c5 00 00 00 00 |....>...|........|
|00002920| 3e a8 00 22 00 00 07 2d | 00 00 00 00 3e d0 00 62 |>.."...-|....>..b|
|00002930| 00 00 09 01 00 00 00 00 | 3e da 00 76 00 00 0a dd |........|>..v....|
|00002940| 00 00 00 00 3e c6 00 51 | 00 00 0d 25 00 00 00 00 |....>..Q|...%....|
|00002950| 3e bc 00 41 00 00 10 0a | 00 00 00 00 3e b2 00 32 |>..A....|....>..2|
|00002960| 00 00 11 05 00 00 00 00 | 3f 02 00 bb 00 00 13 39 |........|?......9|
|00002970| 00 00 00 00 3e f8 00 ac | 00 00 15 8b 00 00 00 00 |....>...|........|
|00002980| 3f 0c 00 cc 00 00 17 da | 00 00 00 00 3f 16 00 dd |?.......|....?...|
|00002990| 00 00 1a 2c 00 00 00 00 | 3f 20 00 ef 00 00 1c 7f |...,....|? ......|
|000029a0| 00 00 00 00 3f 2a 01 01 | 00 00 1e ef 00 00 00 00 |....?*..|........|
|000029b0| 3f 34 01 13 00 00 21 67 | 00 00 00 00 3f 3e 01 22 |?4....!g|....?>."|
|000029c0| 00 00 22 35 00 00 00 00 | 3e e4 00 88 00 00 23 05 |.."5....|>.....#.|
|000029d0| 00 00 00 00 3e ee 00 99 | 00 00 24 e9 00 00 00 00 |....>...|..$.....|
|000029e0| 00 01 ff ff 00 00 01 20 | 00 59 cf c4 00 02 ff ff |....... |.Y......|
|000029f0| 00 00 01 5b 00 5a cb 60 | 0f 6d 61 6e 20 73 65 74 |...[.Z.`|.man set|
|00002a00| 20 67 65 6e 65 72 61 6c | 11 6d 61 6e 20 75 6e 73 | general|.man uns|
|00002a10| 65 74 20 67 65 6e 65 72 | 61 6c 0f 6d 61 6e 20 65 |et gener|al.man e|
|00002a20| 6e 76 20 67 65 6e 65 72 | 61 6c 0e 6d 61 6e 20 63 |nv gener|al.man c|
|00002a30| 64 20 67 65 6e 65 72 61 | 6c 0f 6d 61 6e 20 70 77 |d genera|l.man pw|
|00002a40| 64 20 67 65 6e 65 72 61 | 6c 10 6d 61 6e 20 70 61 |d genera|l.man pa|
|00002a50| 74 68 20 67 65 6e 65 72 | 61 6c 13 6d 61 6e 20 70 |th gener|al.man p|
|00002a60| 61 74 68 63 68 6b 20 67 | 65 6e 65 72 61 6c 11 6d |athchk g|eneral.m|
|00002a70| 61 6e 20 77 68 69 63 68 | 20 67 65 6e 65 72 61 6c |an which| general|
|00002a80| 10 6d 61 6e 20 65 78 69 | 74 20 67 65 6e 65 72 61 |.man exi|t genera|
|00002a90| 6c 12 6d 61 6e 20 65 78 | 70 6f 72 74 20 67 65 6e |l.man ex|port gen|
|00002aa0| 65 72 61 6c 0e 6d 61 6e | 20 69 66 20 67 65 6e 65 |eral.man| if gene|
|00002ab0| 72 61 6c 10 6d 61 6e 20 | 74 68 65 6e 20 67 65 6e |ral.man |then gen|
|00002ac0| 65 72 61 6c 10 6d 61 6e | 20 65 6c 73 65 20 67 65 |eral.man| else ge|
|00002ad0| 6e 65 72 61 6c 11 6d 61 | 6e 20 65 6e 64 69 66 20 |neral.ma|n endif |
|00002ae0| 67 65 6e 65 72 61 6c 11 | 6d 61 6e 20 77 68 69 6c |general.|man whil|
|00002af0| 65 20 67 65 6e 65 72 61 | 6c 11 6d 61 6e 20 75 6e |e genera|l.man un|
|00002b00| 74 69 6c 20 67 65 6e 65 | 72 61 6c 0e 6d 61 6e 20 |til gene|ral.man |
|00002b10| 64 6f 20 67 65 6e 65 72 | 61 6c 10 6d 61 6e 20 64 |do gener|al.man d|
|00002b20| 6f 6e 65 20 67 65 6e 65 | 72 61 6c 0f 6d 61 6e 20 |one gene|ral.man |
|00002b30| 6d 61 6e 20 67 65 6e 65 | 72 61 6c 11 6d 61 6e 20 |man gene|ral.man |
|00002b40| 6d 61 6e 20 72 65 73 6f | 75 72 63 65 73 00 00 00 |man reso|urces...|
|00002b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+